package com.ggy.babybed.model;

/**
 * Created by ggy on 2016/3/31.
 */
public class SwayModel extends BaseModel {

    /** 幅度 **/
    private int range;
    /** 频率 **/
    private int rate;
    /** 开关状态 **/
    private boolean isOpen;

    public interface  onSwayModelClick{
        public void onRangeChange(int range);
        public void onRateChange(int rate);
        public void onStateChange(boolean state);
    }

    public int getRange() {
        return range;
    }

    public void setRange(int range) {
        this.range = range;
    }

    public int getRate() {
        return rate;
    }

    public void setRate(int rate) {
        this.rate = rate;
    }

    public boolean isOpen() {
        return isOpen;
    }

    public void setIsOpen(boolean isOpen) {
        this.isOpen = isOpen;
    }
}
